]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
dnd: Declare restore location variables
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Thu, 7 Dec 2017 00:03:51 +0000 (19:03 -0500)
committerMarco Trevisan (Treviño) <mail@3v1n0.net>
Wed, 17 Jan 2018 18:04:41 +0000 (13:04 -0500)
https://bugzilla.gnome.org/show_bug.cgi?id=791233

js/ui/dnd.js

index a64915bc82997de1542a737940f5cd512f249fab..33580ee94eb0cf21bcb07607ce1c74be6f331508 100644 (file)
@@ -583,7 +583,7 @@ var _Draggable = new Lang.Class({
 
     _restoreDragActor: function(eventTime) {
         this._dragInProgress = false;
-        [restoreX, restoreY, restoreScale] = this._getRestoreLocation();
+        let [restoreX, restoreY, restoreScale] = this._getRestoreLocation();
 
         // fade the actor back in at its original location
         this._dragActor.set_position(restoreX, restoreY);